<?php
require_once(realpath(dirname(__FILE__)) . '/../config.php');
require_once(realpath(dirname(__FILE__)) . '/../includes/common/ServiceFactory.php');

Session::start();

$authService = ServiceFactory::get("AuthenticationService");

if($authService -> isAuthenticated())
{
    $authService -> logout($authService -> getCurrentUser(), "./login.php");
}

Response::redirect("./login.php");

?>